package jsyf.oa.facade.business;

import com.alibaba.dubbo.rpc.protocol.rest.support.ContentType;
import com.alibaba.fastjson.JSONObject;

import java.util.List;

import javax.ws.rs.Consumes;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

@Path("/businessService")
@Consumes({MediaType.APPLICATION_JSON, MediaType.TEXT_XML})
@Produces({ContentType.APPLICATION_JSON_UTF_8, ContentType.TEXT_XML_UTF_8})
public interface BusinessFacade {

    @Path("/save")
    String save(String jsonData);

    @Path("/delById")
    Boolean delById(String id);

    @Path("/getBusinessList")
    List<JSONObject> getBusinessList();

    @Path("/getBusinessListByPage")
    JSONObject getBusinessListByPage(String jsonData);

    @Path("/getBusinessById")
    JSONObject getBusinessById(String jsonData);
    @Path("/getUnDoCount")
    String getUnDoCount(String userId);
    @Path("/getById")
    JSONObject getById(String id);

    @Path("getJSONByAuditAndCopier")
    JSONObject getJSONByAuditAndCopier(String id);

    @Path("/applyAudit")
    Boolean applyAudit(String jsonData);

    /*
    @Path("/getUnDoCount")
    String getUnDoCount(String userId);

    @Path("/getByPage")
    JSONObject getByPage(String userId, String key, String companyId, String auditFlag, String type, String createUserName, int requestPage, int pageSize);



    @Path("/applyAudit")
    Boolean applyAudit(String id, String userId, String auditFlag, String advise);

    @Path("removeById")
    Boolean removeById(String id);

    @Path("/copierReturn")
    Boolean copierReturn(String id, String copierReturnReason);

    @Path("/getBrandByCompanyId")
    List<JSONObject> getBrandByCompanyId(String companyId);

    @Path("/getModelByBrandId")
    List<JSONObject> getModelByBrandId(String brandId);
    */

}
